/**
 * 
 */
package org.rico.simple;

import org.quartz.Scheduler;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.scheduling.quartz.SchedulerFactoryBean;

/**
 * @author rico
 *
 */
public class SimpleTaskTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext-simple.xml");
		
		Scheduler scheduler = (Scheduler) context.getBean("scheduler");
		SchedulerFactoryBean schedulerFactoryBean = context.getBean(SchedulerFactoryBean.class);
		
		System.out.println("scheduler = " + scheduler.getClass());
		System.out.println("schedulerFactoryBean = " + schedulerFactoryBean.getClass());
	}

}
